import { IsNotEmpty, Length, MaxLength } from "class-validator"


export class LoginUserDto {
    @MaxLength(20, { message: '账户最大长度为20位' })
    @IsNotEmpty()
    account: string

    @IsNotEmpty()
    @Length(6, 20, { message: '密码长度必须在6到20位之间' })
    password: string
}
